<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>选择网站</title>
	</head>
	<select name="" id="selected" onchange="selecting()">
		<option value="">请选择网站</option>
		<option value="https://www.baidu.com">百度</option>
		<option value="https://www.163.com">网易</option>
		<option value="https://www.runoob.com">菜鸟教程</option>
	</select>
	<body>
		<script type="text/javascript">
			function selecting (){
				var web =document.getElementById('selected').value;
				location.href=web;
			}
		</script>
	</body>
</html>
